import java.util.Scanner;

class ICompute {
    public int computer(int n, int m) {
        return 0;
    }
}
class Add extends ICompute {
    @Override
    public int computer(int n, int m) {
        return m+n;
    }
}
class Sub extends ICompute {
    @Override
    public int computer(int n, int m) {
        return n - m;
    }
}

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        Add add = new Add();
        Sub sub = new Sub();
        System.out.println(add.computer(a, b));
        System.out.println(sub.computer(a, b));
    }
}